package com.bdqn.hospital.service;

import com.bdqn.hospital.pojo.Patient;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.bdqn.hospital.pojo.Patient;
import org.apache.ibatis.annotations.Param;


/**
 * @version : 1.0
 * @Author :guogd
 * @createTime: 2023/03/01 14:54
 * @Description: com.bdqn.hospital.service
 */
public interface PatientService {
    /**
     * 病人Service
     */

    /**
     * 根据id查询病人信息
     * @param id
     * @return
     */
    Patient getPatientById(@Param("id") Integer id);

    /**
     * 验证医保卡和身份证信息
     * @param idCard
     * @param idMedicare
     * @return
     */
    Integer checkAddPatient(String idCard,String idMedicare);
    /**
     * 新增病人细信息
     * @return
     */
    Integer addPatient(Patient patient);

    /**
     * 根据身份证获取病人信息
     * @param idCard
     * @return
     */
    Patient getPatientByIdCard(String idCard);
}
